﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    /// <summary>
    /// 项目算法规则模板关系表
    /// </summary>
    [Table("MsProjectAlgorithm")]
    public class MsProjectAlgorithm : BaseEntity
    {
        /// <summary>
        /// 项目ID
        /// </summary>
        [Required]
        [Column(TypeName = "uuid")]
        public Guid ProjectId { get; set; }

        /// <summary>
        /// 算法规则模板ID
        /// </summary>
        [Required]
        [Column(TypeName = "uuid")]
        public Guid AlgorithmId { get; set; }

        public virtual MsProject Project { get; set; }

        public virtual MsAlgorithmParamTemplate Algorithm { get; set; }
    }
}